import ajax from "../request.js";

// 获取招募信息
export const getInfo = (params = {}) => {
	return ajax({
		url: "/api/moveAbout",
		method: "get",
		params,
	})
}
// 招募信息详情页
export const getDetail = (id, params = {})=>{
	return ajax({
		url:`/api/moveAbout/${id}`,
		method:"get",
		params
	})
}
// 报名接口
export const enroll = (params = {}) => {
	return ajax({
		url:"/api/enroll",
		method:"post",
		params
	})
}

// 收藏招募信息
export const collectInfo = (params = {}) => {
	return ajax({
		url:`/api/moveAbout/collect`,
		method:"post",
		params
	})
}